package com.feicheng.common.config;

import java.io.IOException;
import java.io.PrintWriter;

import jakarta.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.HandlerInterceptor;

import com.feicheng.common.result.ResultInfo;

public abstract class AbstractHandler implements HandlerInterceptor {
	protected void authFailOutput(HttpServletResponse response) throws IOException {
		response.setContentType("application/json;charset=UTF-8");
		PrintWriter out = response.getWriter();
		out.write(ResultInfo.loginFail().toJSONString());
		out.flush();
	}
}
